export interface CartListResponseData {
    code: string;
    msg: string;
    result: CartListData[];
}

export interface CartListData {
    id: string;
    skuId: string;
    name: string;
    attrsText: string;
    specs: any[];
    picture: string;
    price: string;
    nowPrice: string;
    nowOriginalPrice: string;
    selected: boolean;
    stock: number;
    count: number;
    isEffective: boolean;
    discount: null;
    isCollect: boolean;
    postFee: number;
}


// 加入购物车的数据类型
export interface addCart {
    skuId: string,
    count: number
}

// 全选购物车商品的数据类型
export interface allSelect {
    
        "selected": boolean,
        "ids": string[]
      
}
export interface allSelectResponseData {
    code: string, 
    msg: string, 
    result: null
}


export interface addCartResponseData {
    code: string;
    msg: string;
    result: addCartData;
}

// 修改商品
export interface updateCart {
    selected: boolean,
    count: number
  }

  export interface updateCartResponseData {
    code: string;
    msg: string;
    result: updateCartData;
}
export interface updateCartData {
    id: string;
    skuId: string;
    name: string;
    attrsText: string;
    specs: any[];
    picture: string;
    price: string;
    nowPrice: string;
    nowOriginalPrice: string;
    selected: boolean;
    stock: number;
    count: number;
    isEffective: boolean;
    discount: null;
    isCollect: boolean;
    postFee: number;    
}
// 删除商品
export interface deleteData {
    ids: string[]
}

interface addCartData {
    id: string;
    skuId: string;
    name: string;
    attrsText: string;
    specs: any[];
    picture: string;
    price: string;
    nowPrice: string;
    nowOriginalPrice: string;
    selected: boolean;
    stock: number;
    count: number;
    isEffective: boolean;
    discount: null;
    isCollect: boolean;
    postFee: number;
}


// 猜你喜欢
// guessLikeResponseData

export interface guessLikeResponseData {
    code: string;
    msg: string;
    result: guessLikeGoods[];
}

export interface guessLikeGoods {
    id: string;
    name: string;
    desc: string;
    price: string;
    picture: string;
    orderNum: number;
}